import subprocess

def convert(self, path):
    print "Conversion to ogg started to destination "+path
    print "Please wait.."
    try:
        subprocess._cleanup = lambda: None
        proc = subprocess.Popen(['mp32ogg','--delete','--quality=7','--verbose', path],stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        output, error = proc.communicate(None)
        if error != None:
            print error
            print output
    except OSError, msg:
        print error
        print msg
        return
    return output